<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible, refresh" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
<title>YOKI</title>
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css">
<script src="jquery-1.10.1.min.js"></script>
<script src="common.js"></script>
<script src="js/lib/bootstrap.min.js"></script>
<style type="text/css">
html {
	font-size: 10px !important
}

@media screen and (min-width:321px) and (max-width:375px) {
	html {
		font-size: 11px !important
	}
}

@media screen and (min-width:376px) and (max-width:414px) {
	html {
		font-size: 12px !important
	}
}

@media screen and (min-width:415px) and (max-width:639px) {
	html {
		font-size: 15px !important
	}
}

@media screen and (min-width:640px) and (max-width:719px) {
	html {
		font-size: 16px !important
	}
}

@media screen and (min-width:720px) and (max-width:749px) {
	html {
		font-size: 22.5px !important
	}
}

@media screen and (min-width:750px) and (max-width:799px) {
	html {
		font-size: 23.5px !important
	}
}

@media screen and (min-width:800px) {
	html {
		font-size: 25px !important
	}
} 

hr {
	margin-top: 0px !important;;
	margin-bottom: 0px !important;;
	border: 0;
	border-top: 1px solid #eee;
}
</style>


<script type="text/javascript">

//判断访问终端 备用
var browser={
    versions:function(){
        var u = navigator.userAgent, app = navigator.appVersion;
        return {
            trident: u.indexOf('Trident') > -1, //IE内核
            presto: u.indexOf('Presto') > -1, //opera内核
            webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
            gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,//火狐内核
            mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
            ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
            android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器
            iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
            iPad: u.indexOf('iPad') > -1, //是否iPad
            webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
            weixin: u.indexOf('MicroMessenger') > -1, //是否微信 （2015-01-22新增）
            qq: u.match(/\sQQ/i) == " qq" //是否QQ
        };
    }(),
    language:(navigator.browserLanguage || navigator.language).toLowerCase()
}




$(document).ready(function(){
	
	var ua = navigator.userAgent.toLowerCase();
	var u = navigator.userAgent, app = navigator.appVersion;
	var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
	var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
	
	if(isAndroid){
		document.getElementById("downloadId").setAttribute("href","/yokivoice/appDownload.html");
	}
	if(isiOS){
		if(ua.indexOf("micromessenger") > 0 ){
			document.getElementById("downloadId").setAttribute("href","/yokivoice/appDownload.html");
		}else{
			document.getElementById("downloadId").setAttribute("href","https://itunes.apple.com");
		}
	}
});





</script>	
</head>
<body style="background-color:#454545;">
			
		<a id="downloadId" href="https://itunes.apple.com">111111</a>
</body>
	
</html>
